// 关于 用户 的路由

const express = require('express');

const router = express.Router();

// 校验
const {comment_page_articleId,add_comment_articleId,comment_id} =require('../schema/comment_schema')
// 执行函数
const commentHandle = require('../router_handler/comment_handler');
// 数据校验
const expressJoi = require('@escook/express-joi');

router.get('/comment',expressJoi(comment_page_articleId),commentHandle.getArticleComment);

router.post('/comment',expressJoi(add_comment_articleId),commentHandle.addArticleComment);
router.get('/comment/:id',expressJoi(comment_id),commentHandle.getArticleCommentById);

// 导出路由
module.exports = router;